<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/static/css/layui.css">
    <link rel="stylesheet" href="/static/css/style.css">
    <link rel="shortcut icon" href ="/static/images/favicon.png">
</head>

<body class="layui-layout-body">
<!--上方标题栏-->
 <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div  class="appName">Ubuntu</div>
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item"><a href=""><img src="/static/images/default.jpg"> default &bull;admin</a>
                    <dl class="layui-nav-child">
               <dd><a href="" >admin</a></dd>
               </dl></li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img src="/static/images/icon-person.png"/>admin </a>
                    <dl class="layui-nav-child">
                        <dd><a href="">设置&帮助</a></dd>
                        <dd><a href="/zgh0381/loginout/">注销</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">项目</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" class="menu_three ">计算</a>
                                <ol class="layui-nav-child" style="display: none;">
                                    <li><a href="/zgh0381/Summary/" target="content_iFrm" >概述</a></li>
                                    <li><a href="/zgh0381/serverlist/" target="content_iFrm"  >实例</a></li>
                                    <li><a href="javascript:;">卷</a></li>
                                    <li><a href="/zgh0381/imagelist/" target="content_iFrm">映像</a></li>
                                    <li><a href="javascript:;">访问&安全</a></li>
                                </ol>
                            </dd>
                            <dd><a href="javascript:;" class="menu_three">网络</a>
                                <ol class="layui-nav-child" style="display: none;">
                                    <li><a href="javascript:;">网络拓扑</a></li>
                                    <li><a href="javascript:;">网络</a></li>
                                </ol>
                            </dd>
                        </dl>
                    </li>
                     <li class="layui-nav-item ">
                        <a class="" href="javascript:;">管理员</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" class="menu_three ">系统</a>
                                <ol class="layui-nav-child" style="display: none;">
                                    <li><a href="">概述</a></li>
                                    <li><a href="javascript:;">管理程序</a></li>
                                    <li><a href="javascript:;">主机聚集</a></li>
                                    <li><a href="javascript:;">实例</a></li>
                                    <li><a href="javascript:;">卷</a></li>
                                    <li><a href="/zgh0381/flavors/" target="content_iFrm">flavor数</a></li>
                                    <li><a href="javascript:;">映像</a></li>
                                    <li><a href="javascript:;">网络</a></li>
                                    <li><a href="javascript:;">缺省值</a></li>
                                    <li><a href="javascript:;">元数据定义</a></li>
                                    <li><a href="javascript:;">系统信息</a></li>
                                </ol>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">身份管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                    <li><a href="/zgh0381/projectlist" target="content_iFrm">项目</a></li>
                            </dd>
                            <dd><li><a href="/zgh0381/userlist/"  target="content_iFrm">用户</a></li></dd>
                            <dd><li><a href="/zgh0381/grouplist/" target="content_iFrm" >组</a></li></dd>
                            <dd> <li><a href="/zgh0381/rolelist/" target="content_iFrm">角色</a></li></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="parentMain">
            <iframe name="content_iFrm" id="Parent" src="/zgh0381/projectlist">
            </iframe>
        </div>

    <script src="/static/lib/layui/layui.js"></script>
    <script>
        //JavaScript代码区域
        layui.use(['element', 'jquery'], function () { var element = layui.element, $ = layui.jquery; $(".menu_three").on("click", function () { $(this).next().toggle(); $.each($(this).parent().siblings(), function (i, e) { $(e).find("ol").hide();; }); });$("ol").on("click", "li a", function () { $.each($(this).parent().siblings(), function (i, e) { $(e).find("a").removeClass('three_this') }); $(this).addClass('three_this');                            // 添加当前元素的样式
        }) });
    </script>

</div>
</body>
</html>

